﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Urb.Weather.Core.Configuration;
using Config = Urb.Weather.Core.Configuration.Configuration;
using Urb.Weather.Yahoo;
using Urb.Weather.Wunderground;

namespace Urb.Weather.Ticker.Configuration.Preconfigured
{
    public class ConfigurationManager : IConfigurationManager
    {
        public Config Load()
        {
            var config = new Config();

            config.WeatherDataProviderConfigurations.Add(
                new YahooWeatherDataProviderConfiguration()
                {
                    LocationId = "526363",
                    RefreshTimeSpan = new TimeSpan(0, 12, 30)
                }
                );

            config.WeatherDataProviderConfigurations.Add(
                new WundergroundWeatherDataProviderConfiguration()
                {
                    Location = "Wroclaw,Poland",
                    RefreshTimeSpan = new TimeSpan(0, 12, 41)
                }
                );

            return config;
        }
    }
}
